From: Matthew Daley Date: Tue, 10 Sep 2013 11:12:45 +0000 (+1200) Subject: tools/ocaml: fix erroneous free of cpumap in stub_xc_vcpu_getaffinity X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6184 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3cd10fd21220f2b814324e6e732004f8f0487d0a;p=xen.git tools/ocaml: fix erroneous free of cpumap in stub_xc_vcpu_getaffinity Not sure how it got there... Coverity-ID: 1056196 This is CVE-2013-4370 / XSA-69 Signed-off-by: Matthew Daley Acked-by: Ian Campbell --- diff --git a/tools/ocaml/libs/xc/xenctrl_stubs.c b/tools/ocaml/libs/xc/xenctrl_stubs.c index df756ad539..f5cf0edb24 100644 --- a/tools/ocaml/libs/xc/xenctrl_stubs.c +++ b/tools/ocaml/libs/xc/xenctrl_stubs.c @@ -461,8 +461,6 @@ CAMLprim value stub_xc_vcpu_getaffinity(value xch, value domid, retval = xc_vcpu_getaffinity(_H(xch), _D(domid), Int_val(vcpu), c_cpumap); - free(c_cpumap); - if (retval < 0) { free(c_cpumap); failwith_xc(_H(xch));